Package com.cisco.pt.ipc.sim.impl
Class MgntAccessSettingImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.MgntAccessSettingImpl
- All Implemented Interfaces:
IPCObject,MgntAccessSetting
Information provided by the PKI file:
\class CMgntAccessSetting
\brief CMgntAccessSetting is used to control telnet and ssh access into the asa
\example network().getDevice("Router0").getAsaMgntAccessManager()
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionMgntAccessSettingImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionInformation provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:booleanisActive()Information provided by the PKI file:booleanisIpv4()Information provided by the PKI file:voidsetActive(boolean isActive) Information provided by the PKI file:voidsetIpv4(boolean isIpv4) Information provided by the PKI file:voidsetTimeout(int timeout) Information provided by the PKI file:toString()Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
MgntAccessSettingImpl
public MgntAccessSettingImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getAccessProtocol
Information provided by the PKI file:
\brief Return the access protocol eTelnet =0, eSsh, eHttp- Specified by:
getAccessProtocolin interfaceMgntAccessSetting- Returns:
- AccessProtocol Returns a AccessProtocol
-
getAllowedIp
Information provided by the PKI file:
\brief Return the ip address that is allowed to access the asa \return ip, value is the ip address that is allowed to access the asa.- Specified by:
getAllowedIpin interfaceMgntAccessSetting- Returns:
- IPAddress Returns a IPAddress
-
getAllowedMask
Information provided by the PKI file:
\brief Return the mask address of the host that is allowed to access the asa \return ip, value is the mask address of the host that is allowed to access the asa.- Specified by:
getAllowedMaskin interfaceMgntAccessSetting- Returns:
- IPAddress Returns a IPAddress
-
getAllowedPrefix
public int getAllowedPrefix()Information provided by the PKI file:
\brief Return the prefix of the host that is allowed to access the asa \return int, value is the the prefix of the host that is allowed to access the asa.- Specified by:
getAllowedPrefixin interfaceMgntAccessSetting- Returns:
- int Returns a int
-
getSrcNameIf
Information provided by the PKI file:
\brief Return the nameif at which the host can access into \return string, value is the nameif at which the host can access into.- Specified by:
getSrcNameIfin interfaceMgntAccessSetting- Returns:
- String Returns a String
-
getTimeout
public int getTimeout()Information provided by the PKI file:
\brief Return the timeout of the connection \return int, value is the timeout of the connection.- Specified by:
getTimeoutin interfaceMgntAccessSetting- Returns:
- int Returns a int
-
setTimeout
public void setTimeout(int timeout) Information provided by the PKI file:
\brief Set the timeout for the connection \param timeout - time in minutes- Specified by:
setTimeoutin interfaceMgntAccessSetting- Parameters:
timeout- Takes in a parameter of timeout
-
toString
Information provided by the PKI file:
\brief Return the configuration in string \return string, value is the configuration string.- Specified by:
toStringin interfaceMgntAccessSetting- Overrides:
toStringin classObject- Returns:
- String Returns a String
-
setIpv4
public void setIpv4(boolean isIpv4) Information provided by the PKI file:
\brief set the access setting to ipv4 when it permits an ipv4 address \param isIpv4 - true if ipv4; false if ipv6- Specified by:
setIpv4in interfaceMgntAccessSetting- Parameters:
isIpv4- Takes in a parameter of isIpv4
-
isIpv4
public boolean isIpv4()Information provided by the PKI file:
\brief Return true if the setting allows ipv4 address and false if the setting allows ipv6 address \return bool, value is true if the setting allows ipv4 address and false if the setting allows ipv6 address.- Specified by:
isIpv4in interfaceMgntAccessSetting- Returns:
- boolean Returns a boolean
-
isActive
public boolean isActive()Information provided by the PKI file:
\brief Return true if the setting has all of the required configuration for example (ip address is set on the nameif interface) \return bool, value is true if the setting has all of the required configuration.- Specified by:
isActivein interfaceMgntAccessSetting- Returns:
- boolean Returns a boolean
-
setActive
public void setActive(boolean isActive) Information provided by the PKI file:
\brief Set the setting to be active or inactive \param isActive, true to set to active, false to inactive.- Specified by:
setActivein interfaceMgntAccessSetting- Parameters:
isActive- Takes in a parameter of isActive
-